package cn.zkcloud.handler;

import cn.zkcloud.servlet.HttpContext;

import java.util.Iterator;

/**
 * @Author zk
 * @Date 2017/6/19.
 * @Email zkdcloud_cn@163.com
 */
public class RequestDispatchHandler implements Handler{
    public void handler(HttpContext httpContext, Iterator<Handler> iterator) {

        if(iterator.hasNext()){
            iterator.next().handler(httpContext,iterator);
        }
    }
}
